package fr.mywiki.model.datamanagement.query;

import java.util.Hashtable;
import java.util.List;

public class DMSelectQuery {
	/** The columns to extract. A list of DMSelectField objects */
	private List fields;
	
	/** The tables used for the query. A hashtable linking the aliases to table names */
	private Hashtable tables;
	
	/** The where clause */
	private DMWhereClause where;
	
	private class DMSelectField {
		/** Table alias, must be indexed in the tables hashtable */
		private String tableAlias;
		/** Database column name, from the field to extract */
		private String fieldName;
		/** The title of the column to display if necessary (but should not be) */ 
		private String title;
	}
}
